package com.itheima.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2020-08-11 14:13
 * @description
 *
 * 写controller 后缀就可以省略了
 *
 *
 *
 */
@Controller

@RequestMapping("/user")
public class UserController {

    @RequestMapping(value = "/login")
    public String login(
            @RequestParam("username") String username,
            @RequestParam("password")String password){
        System.out.println("参数:"+username+":"+password);
        return "user/success";
    }

}
